//
//  AdvView.h
//  tujiaoipad
//
//  Created by admin on 12-7-22.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//


#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>




@protocol AdvViewDelegate;

@interface AdvView : UIView<UIScrollViewDelegate> {
    UIScrollView *advScrollView;
    NSMutableArray	*advList;//广告列表
    int currentPage;//当前广告页
    NSTimer *theTime;//定时器，用来定时移动广告
    BOOL landScape;
    
    
}

@property (nonatomic, copy) NSMutableArray *advList;
@property (nonatomic,assign) id<AdvViewDelegate> advDelegate;
- (id)initWithFrame:(CGRect)frame aList:(NSMutableArray*)aList;
-(void)resetdAdvList:(NSMutableArray*)adDataList;
-(void)addAdv;
-(void)reloadAdvViewFrame;
//-(void)addObserver;

@end



@protocol AdvViewDelegate <NSObject>
@optional

- (void)advSelectWithParams:(NSDictionary *) params;
- (NSMutableArray*)getAdvList;

@end

